package com.example.consumer.controller;

import com.example.consumer.service.OrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class OrderController {

    @Resource
    OrderService orderService;

    @GetMapping("/order")
    public String getOrder(){
        return orderService.getUser();
    }

    @GetMapping("/DubboOrder")
    public String DubboOrder(){
        return orderService.getDubboUser();
    }
}
